package com.ccc.demoboot.service;

import com.ccc.demoboot.pojo.Role;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ccc.demoboot.dao.SysusermidroleMapper;
import com.ccc.demoboot.pojo.Sysusermidrole;
import com.ccc.demoboot.service.SysusermidroleService;

/**
 * @Author wz
 * @Date 2024/6/12 8:51
 * @PackageName:com.ccc.demoboot.service
 * @ClassName: SysusermidroleServiceImpl
*/
@Service
public class SysusermidroleServiceImpl extends ServiceImpl<SysusermidroleMapper, Sysusermidrole> implements SysusermidroleService{
    @Override
    public List<Role> select() {
        List<Role> list= this.baseMapper.select();
        return list;
    }

    @Override
    public List<Map<String, Object>> selectRoleidJobtype(Integer roleid) {

        return this.baseMapper.selectRoleidJobtype(roleid);
    }

    @Override
    public List<Map<String, Object>> selectRoleidDepartment(Integer roleid) {
        return this.baseMapper.selectRoleidDepartment(roleid);
    }

    @Override
    public List<Map<String, Object>> selectRoleidPost(Integer roleid) {
        return this.baseMapper.selectRoleidPost(roleid);
    }

    @Override
    public List<Map<String, Object>> selectRoleidUser(Integer roleid) {
        return this.baseMapper.selectRoleidUser(roleid);
    }

    @Override
    public List<Role> selectTj(Role role) {
        return this.baseMapper.selectTj(role);
    }

    @Override
    public boolean addCheckListDep(Sysusermidrole sysusermidrole) {

        return this.baseMapper.addCheckListDep(sysusermidrole);
    }

    @Override
    public boolean delCheckListDep(Sysusermidrole sysusermidrole) {

        return this.baseMapper.delCheckListDep(sysusermidrole);
    }

    @Override
    public boolean delId(String ids) {
        return this.baseMapper.delId(ids);
    }

    @Override
    public boolean addMidrole(int roleid, String ids) {
        return this.baseMapper.addMidrole(roleid,ids);
    }


}
